<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑联系人</title>
</head>
<body>
    <h1>编辑联系人 - {{ name }}</h1>
    <form action="{{ url_for('edit_contact', name=name) }}" method="post">
        <label for="phone">电话号码:</label>
        <input type="tel" id="phone" name="phone" value="{{ phone }}" required>
        <button type="submit">保存更改</button>
    </form>
    <a href="{{ url_for('index') }}">取消并返回</a>
</body>
</html>